<?php
declare (strict_types = 1);

namespace app\home\controller;

use app\BaseController;
use app\home\business\CartBusiness;
use think\Request;

class Cart extends Base
{
    public function cart(Request $request){
        $post=$request->post();
        CartBusiness::addCart($post['goods_id'],$post['spec_goods_id'],$post['number'],$is_selected=1);
        return view('cart');
    }

    public function cartShow(){

        return view('cart');
    }
}
